//
// Created by tang on 22-10-25.
//

#ifndef LEARNOPENGL_FRAME_BUFFER_HPP
#define LEARNOPENGL_FRAME_BUFFER_HPP

#include "gl/gl_validation.hpp"

namespace GL
{
    UNIQUE_HANDLE(FrameBuffer);

    class FrameBuffer final {
    public:
        FrameBuffer();
        ~FrameBuffer();

        void Bind() const;
        void UnBind() const;

        FACTORY_METHOD(FrameBuffer);
    private:
        GLuint m_handle_;
    };
}

#endif//LEARNOPENGL_FRAME_BUFFER_HPP
